/******************************************************************************
 *                  Shanghai ChipON Micro-Electronic Co.,Ltd                  *
 ******************************************************************************
 *  $File Name$       : User_ADC.h                                            *
 *  $Author$          : ChipON AE/FAE Group                                   *
 *  $Data$            : 2021-07-12                                            *
 *  $Hard Version     : KF32A156-MINI-EVB_V1.2                                *
 *  $Description$     : This file contains the Header file configuration 	  *
 * 						for User_ADC 						     		  *
 ******************************************************************************
 *  Copyright (C) by Shanghai ChipON Micro-Electronic Co.,Ltd                 *
 *  All rights reserved.                                                      *
 *                                                                            *
 *  This software is copyright protected and proprietary to                    *
 *  Shanghai ChipON Micro-Electronic Co.,Ltd.                                 *
 ******************************************************************************
 *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  *
 *                     		REVISON HISTORY                               	  *
 *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  *
 *  Data       Version  Author        Description                             *
 *  ~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  *
 *  2021-07-12 00.02.00 FAE Group     Version 2.0 update                      *
 *                                                                            *
 *                                                                            *
 *****************************************************************************/

#ifndef USER_ADC_H_
#define USER_ADC_H_

/*******************************************************************************
**                      	Public Variables Definitions                  	  **
*******************************************************************************/
extern unsigned int adc_buf[32];
extern uint8_t adc_value0[32];
extern uint8_t adc_value1[32];
volatile extern uint8_t adc_flag;

/******************************************************************************
*                      Functional defineition                                 *
******************************************************************************/
void ADC0_Chanel_DMA_Init(void);
void Config_DMA_interrupt(void);
void adc_GPIO_init(void);
void ADC_Struct_Init (ADC_InitTypeDef* adcInitStruct);
void GPIOInit_Output_Config(GPIO_SFRmap* GPIOx,uint16_t GpioPin);
#endif /* USER_ADC_H_ */
